package com.chenliang.service.impl;

import com.chenliang.dao.ISysLogDao;
import com.chenliang.domain.SysLog;
import com.chenliang.service.ISysLogService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: mavenSSM
 * @Package: com.chenliang.service.impl
 * 作用：
 */
@Service
public class SysLogServicImpl implements ISysLogService{
    @Autowired
    private ISysLogDao sysLogDao;
    @Override
    public List<SysLog> findAll(Integer page, Integer pageSize) {
        PageHelper.startPage(page,pageSize);
        return sysLogDao.findAll();


    }

    @Override
    public void saveSysLog(SysLog sysLog) {
        sysLogDao.saveSysLog(sysLog);
        System.out.println(sysLog);
    }
}
